import { createStore } from 'vuex'

export default createStore({
    state: {
        isLogin:false
    },
    getters: {
        //获得状态
        getLoginStates(state){
            return state.isLogin;
        }
    },
    mutations: {
        //设置login的状态
        setLoginStates(state,isLogin){
            state.isLogin=isLogin
        }
    },
    actions: {
    },
    modules: {
    }
})
